#include "stdafx.h"
#include "AddNoteToFile.h"

AddNoteToFile::AddNoteToFile()
{
}

AddNoteToFile::~AddNoteToFile()
{
}

bool AddNoteToFile::isFileLineValid(int idLine)
{
	int idhead, idtail;
	if (PublicFunc::IsStrHasStr(m_csReadlines[idLine], _T("void GetEndPoint("), idhead, idtail))
	{
		return true;
	}

	return false;
}

void AddNoteToFile::GetObjectLinesBySourceLines()
{
	m_csObjectLines.RemoveAll();

	CString key0 = _T("t");
	//if (m_keyWords.size() > 0)
	//{
	//	CString key0 = m_keyWords[0];
	//}

	CString cs = _T("DPoint3d ") + key0 + _T("s, ") + key0 + _T("e;");
	m_csObjectLines.Add(cs);
	m_csObjectLines.Add(_T(" lllllllllllllllllllllllll"));
	m_csObjectLines.Add(_T(" tttttttttttttttttttttttttt"));
}

void AddNoteToFile::GetKeyWordsBySourceLines()
{
	int len = m_csSourceLines.GetSize();
	for (int i = 0; i < len ; i++)
	{
		CString cs = m_csSourceLines[i];
	}
}
